class_name = "CSubmarine"
object_name ="Submarine Type IIB"
detail_type = "DET_SHIP" //list of types is in \inc\SimulationSystem\DetailTypes.inc

//////	PhysicsBody properties
//VisualImage = <int TYPE>,<string File_PathName>,<bool cast_shadows>

VisualImage=0,"graphics/ships/SubType2B/SubType2B.MGM",true
DistantLOD="LuaScripts/WorldObjects/Ships/DistantLODs/LandBoatA_Distant.txt"
DLODArgs=63221,63222

ImageAttrs="IA_NOMINPIXELS","IA_NOMINZ","IA_NOCLIP_ANIM","IA_NOCLIP","IA_ALWAYSVISIBLE"
//	IA_DEFAULT=0,
//	IA_NOCLIP=1,
//	IA_NOCLIP_ANIM=2,
//	IA_NOROTINTERPOLATION=4,
//	IA_NOMINZ=8,
//	IA_NOMINPIXELS=16,
//	IA_NOPOSINTERPOLATION=32,
//	IA_CLOSEVIEWARG=64,
//	IA_ALWAYSVISIBLE=128,
//	IA_SCALEARG=256,
//	ImageAttr=Attr1+Attr2+...+AttrN

CollisionBody="graphics/ships/SubType2B/SubType2B.col"

SoundScript="LuaScripts/Sound/Vehicles/SubTypeSh10.cfg"

[attach=0]
	position= 3.52, 1.406, 0.0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LandBoatA-MGC30.txt"
[end]

[attach=1]
	position= 11.9, -0.742, -0.559
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/SubType2B-TorpedoTurret-L.txt"
[end]

[attach=2]
	position= 11.9, -0.742, 0.559
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/SubType2B-TorpedoTurret-R.txt"
[end]

[attach=3]
	position= 11.9, -1.699, 0.0
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/SubType2B-TorpedoTurret-C.txt"
[end]

[attach=4]
	position= -1.31, 3.0, 0.0
	object = "LuaScripts/WorldObjects/Bots/BotShipperSub.txt"
[end]

[attach=5]
	position= -1.3, 5.16, 0.0
	rotation= -30, -45, 0
	object = "LuaScripts/WorldObjects/FlareGun.txt"
[end]

AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Vehicles\SubType2B.txt"

CommandMonitor="LuaScripts/WorldObjects/VehicleMonitor.txt"


// 
logtreshold=0.0001
MaxDeleteTime = 600

length = 42
height = 4.14
width  = 4.2

TotalPoints = 6

point0 = 11.8, 0, -1.21, 96, 1.2, 0.3
point1 = 11.8, 0, 1.21, 96, 1.2, 0.45
point2 = 0, 0, -1.8, 96, 1.2, 0.3
point3 = 0, 0, 1.8, 96, 1.2, 0.45
point4 = -11.8, 0, -1.4, 96, 1.2, 0.3
point5 = -11.8, 0, 1.4, 96, 1.2, 0.45

//  .  ,   3D .
MaxWaveTime = 8		// 
WavePointSize = 2.0	// 
MaxWave = 40000		//  

Cx = 4000.0					//   .     Y
Cw = 200.0					//     

sendrate = 10				//    50     (=20    2.5)

mass = 279000.0
MaxEngineForce = 55000.0
MaxEngineForceSubmerged = 29000.0
MinEngineForce = 100
Csf=1.5
PrioritySpeed=7.0
MaxPropRotationRPM=240.0	//   (/)    
PropRotationSmoothK=0.01	//     
TurnShift=0.5				//        
RudderAngle=60				//    
Cwx=15						//     , ,  Cw   
Cwz=20000					//     , ,  Cwx*20   
Cang=1.0					//  
RudderPos=-25,-2.1,0		//     (  )
FrictionPos=0,-2.5,0		//     
GlidingK = 0				//       X    ().   - 0
GlidingPosK = 0.3			//    . 1 -  , 0 -  .

DiveInDepth = 8.4
DiveInThreshold = 1.2
DiveInSpeed = 0.2
EmersionSpeed = 0.2
DivePreparationArg = 500

// Damage model

energyloss="",true,3.0,1000		//     , true -       -,       ,        

Armor=20			//  ,  

LifeRate=250000 
LifeRateFrag=250000

EngineExhaustArg = 63200
BackTrailArg = 63222
FrontTrailArg = 63221
PropSprayArg=63231
PeriscTrailArg=63235

[splash]
	pos = 18.95, 0.0, 0
	splashArg = 63229
	SplashTotalTime = 1.0
	SplashAttackTime = 0.1
	SplashKoeff = 30
	startArgValue = 0.5
	
	splashDiffHeight = 2.0
	// time = splashStackCount * splashstacktime
	splashStackCount = 50
	splashstacktime = 0.1
[end]

[splash]
	pos = -0.42, 4.5, 0
	splashArg = 63236
	SplashTotalTime = 1.0
	SplashAttackTime = 0.1
	SplashKoeff = 10
	startArgValue = 0.5
[end]

floathook=18.95, 0.3, 0,	100,false	//x,y,z, Arg, 3D water,      
floathook=-22.5,  0.3, 0,	101,false	//     
floathook=18.95, 0.3, 0,	102,true	//     
floathook=-22.5,  0.3, 0,	103,true	//      
floathook=-0.76, 4.7, 0,	104,false	//      
floathook=-0.76, 4.5, 0,	105,true	//     

OneSectionMode = true
SectionsHealthPercent = 1.0f

CommandSectionId = 3

MinMovementHealth = 0.3

SinkEffectScript = "LuaScripts/WorldObjects/explosions/Effects/SinkBarge.txt"


[section=0]
	Armor = 20

	LifeRate=250000 
	LifeRateFrag=250000

	ConvexName = "collision_1"

	// effect
	EffectCoord = 6.99, 0.70, -0.52
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 761
	FiringArg = 63210
	SmokeArgBase = 63210
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 558000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 11160		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal = 1
	point0 = 0
[end]

[section=1]
	Armor = 20

	LifeRate=250000 
	LifeRateFrag=250000

	ConvexName = "collision_2"

	// effect
	EffectCoord = -4.40, 0.35, -0.55
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 771
	FiringArg = 63211
	SmokeArgBase = 63211
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 558000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 11160		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal = 1
	point0 = 2
[end]

[section=2]
	Armor = 20

	LifeRate=250000 
	LifeRateFrag=250000

	ConvexName = "collision_3"

	// effect
	EffectCoord = -11.99, 0.60, 0.81
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 781
	FiringArg = 63212
	SmokeArgBase = 63212
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 558000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 11160		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal = 1
	point0 = 5

[end]

[section=3]
	Armor = 20

	LifeRate=125000 
	LifeRateFrag=125000

	InfluenceOnTotalHealth = false

	ConvexName = "collision_4"

	// effect
	EffectCoord = -1.61, 3.29, 0.40
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	pointsTotal= 1
	point0 = 2
	
	DestructArg = 901
	FiringArg = 63213
	SmokeArgBase = 63213
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	CollisionLifeRate = 111600		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 2232		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      
[end]

DebugInfo = false